<%@ page contentType="text/html;charset=UTF-8" %>

<!DOCTYPE html>
<html>
<head>
	<title>信息审核</title>
	 <%@ include file="/common/meta.jsp" %>
	<%@ include file="/common/import.jsp" %>
	<script type="text/javascript" src="${ctx}/js/zbxtools.js"></script>
	<script type="text/javascript">
		function _Subimt(){
		    $.ajax({url: '${ctx}/info/operate/doCheck.action',type: 'POST',data: $('#unitSaveForm').serialize(),dataType:'json',
			success: function(data){var result = data;
			    	if(result.flag=='T'){
			    		$.messager.alert('提交结果', '操作成功!', 'info',function(){
				    		parent.closeAdd();
				    		parent.reload();
			    		});
			    	}else{
			    		$.messager.alert('提交结果', result.msg, 'error');
			    	}  }  
		    });
		}
		function bhSubmit(){
		    $.ajax({url: '${ctx}/info/operate/doPsCheck.action',type: 'POST',data: $('#unitSaveForm').serialize(),dataType:'json',
			success: function(data){var result = data;
			    	if(result.flag=='T'){
			    		$.messager.alert('提交结果', '操作成功!', 'info',function(){
				    		parent.closeAdd();
				    		parent.reload();
			    		});
			    	}else{
			    		$.messager.alert('提交结果', result.msg, 'error');
			    	}  }  
		    });
		}
	</script>

<body>	

	<form id="unitSaveForm" name="unitSaveForm" method="post" action="">
		<input type="hidden" name="formToken" id="formToken" value="${formToken}"/>
		<input type="hidden" name="infoId" id="infoId" value="${item.infoId}"/>
		<input type="hidden" name="sortId" id="sortId" value="${item.sortId}"/>
		<input type="hidden" name="title" id="title" value="${item.title}"/>
		<input type="hidden" name="modifyUser" id="modifyUser" value="${loginUser.userEname}"/>
		<c:if test="${item.sortId=='test'}">
		    <%@ include file="temp/test.inc" %>
		</c:if>
		<c:if test="${item.sortId=='skill_trademark'}">
		    <%@ include file="temp/form_test.inc" %>
		</c:if>
		<table class="datagrid-body" >
			<tr>
				<td class="datagrid-header">信息级别</td>
				<td>
				   <input id="infoLevel" name="infoLevel"  value="${item.infoLevel }" />
				</td>
			</tr>
			<tr >
				<td class="datagrid-header">审核意见</td>
				<td>
				    <textarea rows="3" cols="60" name="checkContent"></textarea>			
				</td>
			</tr>
				<tr>
				<td class="datagrid-header"></td>
				<td >
					<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-save" onclick="_Subimt();">通过</a>
					<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-save" onclick="bhSubmit();">驳回</a>	
					<a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="parent.closeAdd();"; >取消</a>		
				</td>
			</tr>
		</table>
	</form>
</body>

</html>